package com.summer.study.leetcode.algorithm;

import java.util.Arrays;

/**
 * @auther: 杨杰
 * @date: 2019/7/25 16:29
 * @description: 两数相加
 * https://leetcode-cn.com/problems/add-two-numbers/
 */
public class Test_002 {

    public static boolean isPalindrome(int x) {
        return String.valueOf(x).equals(new StringBuffer(x+"").reverse().toString());
    }

    /*public int singleNumber(int[] nums) {
        return Arrays.stream(nums).distinct().;
    }*/

    public static void main(String[] args) {
        System.out.println(isPalindrome(11));
    }

    class ListNode {
        int val;
        ListNode next;

        ListNode(int x) {
            val = x;
        }
    }
}
